<?php
/**
 * Gives users access to the array of config
 */
class Config {
	/**
	 * Associative array of config items
	 *
	 * @var array $configs
	 */
	private $configs;

	/**
	 * Sets up all the configs based on $config
	 *
	 * @param array $configs
	 */
	public function __construct (array $configs) {
		$this->configs = $configs;
	}

	/**
	 * Retrieves one config key's value based on $key
	 *
	 * @param string $key
	 */
	public function get ($key) {
		return isset($this->configs[$key]) ? $this->configs[$key] : null;
	}
}
